﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DataCenter.Model.Model;

namespace DataCenter.Model.Interface
{
    public interface IIncentiveAdhocProvider
    {
        IncentiveAdhoc RetrieveIncentiveAdhoc(DateTime selloutDate);

        IncentiveAdhoc RetrieveIncentiveAdhocBySchemeId(string SchemeId);

        List<IncentiveAdhoc> SearchIncentiveAdhoc(out int totalRecord, string textSearch, int pagesize = 0, int pageindex = 0);

        List<IncentiveAdhoc> SearchIncentiveAdhoc(out int totalRecord,string incentiveAdhocName, DateTime? StartDate, DateTime? EndDate,  int pagesize = 0, int pageindex = 0);

        bool Add(IncentiveAdhoc record);

        bool Update(IncentiveAdhoc record);

        bool Delete(string SchemeId);
    }
}
